package designmode.headfirst.decorator.condiment;

import designmode.headfirst.decorator.beverage.Beverage;

import java.math.BigDecimal;

/**
 * 牛奶
 * <p>Filename: designmode.headfirst.decorator.condiment.Milk.java</p>
 * <p>Date: 2020-10-15 17:02.</p>
 *
 * @author <a href="mailto:liufuguo@qianmi.com">OF3581-刘富国</a>
 * @version 0.1.0
 */
public class Milk extends Condiment {

    private Beverage beverage;

    @Override
    public BigDecimal cost() {
        return beverage.cost().add(new BigDecimal("2.00"));
    }

    @Override
    public String getDesc() {
        return "牛奶";
    }
}
